<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<script th:inline="javascript">
    $(function(){
        middlegroup.ns('middlegroup.admin.menu[[${OP.menuId}]]');
        var subjectCode=$('#subject_code').val();
        $('#config').bootstrapTable({
            url:[[${MENU.channel}]]+'/getConfigs?code='+subjectCode,
            height: '100%',
            sortName: 'name',
            sortOrder: 'desc',
            striped: true,
            pagination: true,
            pageSize: 10,
            pageList: [10, 25, 50, 100, 200],
            search: false,
            sidePagination:'server',
            idField: 'id',
            uniqueId: 'id',
            responseHandler: responseHandler,
            queryParams: queryParams,
            minimumCountColumns: 2,
            clickToSelect: true,
            columns: [{checkbox: true
            }, {
                field: 'category',
                title: '目录',
                align: 'center',
                valign: 'middle'
            }, {
                field: 'name',
                title: '配置名',
                align: 'center',
                valign: 'middle',
                sortable: true
            },{
                field: 'content',
                title: '配置值',
                align: 'center',
                valign: 'top'
            },{
                field: 'remark',
                title: '配置说明',
                align: 'center',
                valign: 'middle',
                sortable: true
            },{
                field: 'addTime',
                title: '创建时间',
                align: 'center',
                valign: 'top',
                formatter:function(value,row,index){return new Date(value).pattern("yyyy-MM-dd HH:mm:ss")}
            },{
                field: 'updateTime',
                title: '修改时间',
                align: 'center',
                valign: 'top',
                formatter:function(value,row,index){return new Date(value).pattern("yyyy-MM-dd HH:mm:ss")}
            } ]
        });
    })
</script>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox float-e-margins">
        <input type="hidden" id="subject_code" name="subjectCode" th:value="${dto?.code}"/>
        <div class="ibox-content">
            <div class="table-responsive">
                <table id="config"
                       data-toolbar="#toolbar" data-show-refresh="true"
                       data-show-toggle="true" data-show-columns="true"
                       data-show-footer="false" data-mobile-responsive="true">


                </table>
            </div>
        </div>
    </div>
</div>
</html>